use Illuminate\Validation\Rule; public function rules() { return [ 'title' => [ 'required', Rule::unique('posts', 'title')->ignore($this->post) ] ]; }